<template>
	<view class="user">
		<view class="user-head flex justify-between">
			<view class="user-head-left">
				<view class="user-top flex align-center">
					<view class="username">
						张明明
					</view>
					<view class="sex">
						男
					</view>
				</view>
				<view class="user-bot">
					<text class="t1">10年以上经验</text> <text class="t2">39岁</text> <text>本科</text>
				</view>
			</view>
			<image class="avatar" :src="$mConfig.imageUrl + '/logo.png'" mode="aspectFit"></image>
		</view>
		<view class="user-box">
			<view class="user-item">
				<view class="user-item-label">
					入职时间
				</view>
				<view class="user-item-value">
					派遣工
				</view>
			</view>
			<view class="user-item">
				<view class="user-item-label">
					派遣公司
				</view>
				<view class="user-item-value">
					2024年3月12号
				</view>
			</view>
			<view class="user-item">
				<view class="user-item-label">
					工期
				</view>
				<view class="user-item-value">
					山西人力博才公司
				</view>
			</view>
			<view class="user-item">
				<view class="user-item-label">
					到期时间
				</view>
				<view class="user-item-value">
					3个月
				</view>
			</view>
			<view class="user-item">
				<view class="user-item-label">
					工作时间
				</view>
				<view class="user-item-value">
					2024年3月12号
				</view>
			</view>
			<view class="user-item">
				<view class="user-item-label">
					被推荐人奖励
				</view>
				<view class="user-item-value">
					上午8:00 至 20:00
				</view>
			</view>
			<view class="user-item">
				<view class="user-item-label">
					工作时长
				</view>
				<view class="user-item-value">
					满3个月奖励500元
				</view>
			</view>
			<view class="user-item">
				<view class="user-item-label">
					工期
				</view>
				<view class="user-item-value">
					10.5小时
				</view>
			</view>
		</view>
		<view class="user-box">
			<view class="user-title">
				奖励中介
			</view>
			<view class="user-item">
				<view class="user-item-label">
					满月个数
				</view>
				<view class="user-item-value">
					1个月 奖 <text> 500 元</text>
				</view>
			</view>
			<view class="user-item">
				<view class="user-item-label">
					满月个数
				</view>
				<view class="user-item-value">
					2个月 奖 <text> 1000 元</text>
				</view>
			</view>
			<view class="user-item">
				<view class="user-item-label">
					满月个数
				</view>
				<view class="user-item-value">
					3个月 奖 <text> 1500 元</text>
				</view>
			</view>
		</view>
		<view class="user-box user-box-last">
			<view class="user-item">
				<view class="user-item-label">
					被推荐人奖励
				</view>
				<view class="user-item-value">
					满 3 个月奖励 500 元
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		onLoad(e) {
			let {
				type
			} = e;
			if (type == 1) {
				uni.setNavigationBarTitle({
					title: "派遣员工详情"
				})
			} else if (type == 2) {
				uni.setNavigationBarTitle({
					title: "代招员工详情"
				})
			} else if (type == 3) {
				uni.setNavigationBarTitle({
					title: "直招员工详情"
				})
			}
		},
	}
</script>

<style lang="scss" scoped>
	.user {
		background: #F5F5FC;
		min-height: 100vh;
		height: 100%;
		padding-bottom: 33rpx;

		.user-head {
			padding: 20rpx 49rpx 51rpx 57rpx;

			.user-head-left {

				.user-top {

					.username {
						font-weight: bold;
						font-size: 36rpx;
						color: #222222;
						margin-right: 64rpx;
					}

					.sex {
						font-weight: 500;
						font-size: 30rpx;
						color: #3B4552;
					}
				}

				.user-bot {
					font-weight: 500;
					font-size: 30rpx;
					color: #222222;
					margin-top: 32rpx;

					.t1 {
						margin-right: 30rpx;
					}

					.t2 {
						margin-right: 30rpx;
					}
				}
			}

			.avatar {
				border-radius: 50%;
				width: 122rpx;
				height: 122rpx;
			}
		}


		.user-box {
			padding: 39rpx 37rpx 49rpx 38rpx;
			margin: 0 20rpx 20rpx 20rpx;
			background: #FFFFFF;
			border-radius: 10rpx;

			.user-title {
				margin-bottom: 38rpx;
				margin-top: 10rpx;
				color: #3B4552;
				font-size: 30rpx;
			}

			.user-item {
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-bottom: 38rpx;

				.user-item-label {
					font-weight: 500;
					font-size: 28rpx;
					color: #8994A2;
				}

				.user-item-value {
					font-weight: 500;
					font-size: 28rpx;
					color: #3B4552;
					text-align: right;
				}

				&:last-child {
					margin-bottom: 0;
				}
			}
		}

		.user-box-last {
			margin-bottom: 0 !important;
		}
	}
</style>